package com.anzia.vueblog.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 *@ClassName JwtToken
 *@Description
 *@Author Anzia.
 *@Date 2021/4/24 18:54
 *@Version 1.0
 **/
public class JwtToken implements AuthenticationToken {

    private String token;

    public JwtToken(String jwt) {
        this.token = jwt;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
